﻿@namespace SE.PO.CInterface.Web.Pages.DB.AlarmH
@page "/db/alarms-history"
@using SE.PO.CInterface.Web.Clients
@using SE.PO.CInterface.DBProtocols.AlarmHs
@using AutoMapper
@inject AlarmHClient Client
@inject INotificationService Notice
@inject IMapper Mapper
<PageContainer Title="活动告警">
    <Breadcrumb>
        <Breadcrumb>
            <BreadcrumbItem>首页</BreadcrumbItem>
            <BreadcrumbItem>数据库协议</BreadcrumbItem>
            <BreadcrumbItem>活动告警</BreadcrumbItem>
        </Breadcrumb>
    </Breadcrumb>
    <Content>
        <span>下级SC实时存储历史告警，当活动告警恢复以后，及时把数据存储到历史告警表中。涉及到的表为D_AlarmH。该数据表的数据由上级SC来维护，下级SC只负责实时存储历史告警，删除工作由上级SC负责。</span>
    </Content>
    <ChildContent>
        <Card>
            <Row Gutter="24">
                
                <GridCol Span="24">
                   
                    <Table @ref="_table"
                           TItem="AlarmHDto"
                           ScrollY="900px"
                           Loading="@_loadingData"
                           DataSource="@_source"
                           Total="_total"
                           @bind-PageIndex="_pageIndex"
                           @bind-PageSize="_pageSize"
                           OnChange="OnChange"
                           Size="TableSize.Small">
                        <ColumnDefinitions>
                            @* <PropertyColumn Width="300" Title="设备名称" Property="c => c.DeviceEquipment"/> *@
                             <PropertyColumn Width="300" Title="信号Id" Property="c => c.SignalId"/>
                            <PropertyColumn Width="300" Title="信号名称" Property="c => c.SignalName"/>
                            <PropertyColumn  Title="告警发生时间" Property="c => c.StartTime"/>
                            <PropertyColumn  Title="告警结束时间" Property="c => c.EndTime"/>
                            <PropertyColumn Title="告警等级" Property="c => c.AlarmLevelDisplayName"/>
                            <PropertyColumn Title="告警触发时值" Property="c => c.AlarmValue"/>
                        </ColumnDefinitions>
                    </Table>
                </GridCol>
            </Row>

        </Card>
    </ChildContent>
</PageContainer>
